package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class OrderDeleteRequest {
   String code;

    private OrderDeleteRequest(Builder builder) {
        code = builder.code;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private String code;

        private Builder() {
        }

        public Builder code(String code) {
            this.code = code;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().deleteOrder(new OrderDeleteRequest(this));
        }
    }
}
